﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminTryPoll.aspx.cs" Inherits="MapTeams.Umbraco.Polls.umbraco.plugins.MapTeamsPolls.AdminTryPoll" %>

<%@ Register Src="Controls/PollWidget.ascx" TagName="PollWidget" TagPrefix="uc1" %>
<%@ Register Src="Controls/PollMenu.ascx" TagName="PollMenu" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="/scripts/js/jquery.js" type="text/javascript"></script>
    <link href="/umbraco/plugins/MapTeamsPolls/Styles/AdminSection.css" rel="stylesheet"
        type="text/css" media="all" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="PollsAdminSection">
        <div style="width: 550px; margin: 0px 0px 0px 200px;">
            <h1>MapTeams Polls - Admin Page</h1>
            <h2>Try A Poll - Page</h2>
            <p>
                You must put the ASCX control inside a page that only admin can access when you
                set the <strong>PollId="TestingOnly"</strong> since it will read the PollId from
                queryString.
            </p>
            
            <br />
            <uc2:PollMenu ID="PollMenu1" runat="server" />
            <br />
            <div id="SideBar" 
             style="width: 300px; outline: 1px solid #3B5998; margin: 0px 0px 30px 30px;padding:30px;">
                this is sample div containing the MapTeams PollWidget UserControl<br />
                <ol>
                    <li>you must create new Polls in the Admin Page first.</li>
                    <li>set the PollId attribute for the PollWidget</li>
                    <li>change the CSS as you like.</li>
                </ol>
                <br />
                <uc1:PollWidget ID="PollWidget1" runat="server" 
                    PollId="TestingOnly" 
                    CssFileLocation="~/umbraco/plugins/MapTeamsPolls/Styles/PollsWidget.css" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
